package a8;

import java.awt.Graphics;
import java.awt.Graphics2D;

import javax.swing.JComponent;

public class SpiralComponent extends JComponent{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public SpiralComponent() {
		
	}
	
	/**
	 * Converts the drawing into a component
	 */
	public void paintComponent(Graphics g) {
		Graphics2D g2 = (Graphics2D) g;
		Spiral spiral = new Spiral();
		spiral.draw(g2);	
	}
}
